.class public Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;
.super Lcom/brixd/niceapp/activity/AbsBaseActivity;
.source "NiceAppRedirectActivity.java"


# static fields
.field public static final ACTION_TYPE_SHOW_COMMUNITY_DETAIL:I = 0x4

.field public static final ACTION_TYPE_SHOW_DETAIL:I = 0x1


# instance fields
.field private mProgressHUD:Lcom/zuiapps/suite/utils/hud/ProgressHUD;


# direct methods
.method public constructor <init>()V
    .registers 1

    .prologue
    .line 24
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AbsBaseActivity;-><init>()V

    return-void
.end method

.method static synthetic access$000(Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;)V
    .registers 1
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;

    .prologue
    .line 24
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;->hideDialog()V

    return-void
.end method

.method private hideDialog()V
    .registers 2

    .prologue
    .line 145
    iget-object v0, p0, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;->mProgressHUD:Lcom/zuiapps/suite/utils/hud/ProgressHUD;

    if-eqz v0, :cond_f

    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;->isFinishing()Z

    move-result v0

    if-nez v0, :cond_f

    .line 146
    iget-object v0, p0, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;->mProgressHUD:Lcom/zuiapps/suite/utils/hud/ProgressHUD;

    invoke-virtual {v0}, Lcom/zuiapps/suite/utils/hud/ProgressHUD;->dismiss()V

    .line 148
    :cond_f
    return-void
.end method

.method private prepareToShowCommunityDetail()V
    .registers 7

    .prologue
    const/4 v5, 0x0

    .line 104
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;->getActivity()Landroid/app/Activity;

    move-result-object v2

    const-string v3, "RequestDetailFromPush"

    invoke-static {v2, v3}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    .line 106
    invoke-static {p0}, Lcom/brixd/niceapp/service/adapter/ReqRestAdapter;->niceAppAdapter(Landroid/content/Context;)Lretrofit/RestAdapter;

    move-result-object v2

    const-class v3, Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;

    invoke-virtual {v2, v3}, Lretrofit/RestAdapter;->create(Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;

    .line 107
    .local v1, "request":Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    const-string v3, "ArticleId"

    invoke-virtual {v2, v3, v5}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    .line 108
    .local v0, "appId":I
    const-string v2, ""

    const v3, 0x7f040003

    const/4 v4, 0x0

    invoke-static {p0, v2, v3, v5, v4}, Lcom/zuiapps/suite/utils/hud/ProgressHUD;->show(Landroid/content/Context;Ljava/lang/CharSequence;IZLandroid/content/DialogInterface$OnCancelListener;)Lcom/zuiapps/suite/utils/hud/ProgressHUD;

    move-result-object v2

    iput-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;->mProgressHUD:Lcom/zuiapps/suite/utils/hud/ProgressHUD;

    .line 109
    const-string v2, "push"

    new-instance v3, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity$2;

    invoke-direct {v3, p0}, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity$2;-><init>(Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;)V

    invoke-interface {v1, v0, v2, v3}, Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;->queryCommunityDetail(ILjava/lang/String;Lretrofit/Callback;)V

    .line 142
    return-void
.end method

.method private prepareToShowDetail()V
    .registers 7

    .prologue
    const/4 v5, 0x0

    .line 63
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;->getActivity()Landroid/app/Activity;

    move-result-object v2

    const-string v3, "RequestDetailFromPush"

    invoke-static {v2, v3}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    .line 65
    invoke-static {p0}, Lcom/brixd/niceapp/service/adapter/ReqRestAdapter;->niceAppAdapter(Landroid/content/Context;)Lretrofit/RestAdapter;

    move-result-object v2

    const-class v3, Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;

    invoke-virtual {v2, v3}, Lretrofit/RestAdapter;->create(Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;

    .line 66
    .local v1, "request":Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    const-string v3, "ArticleId"

    invoke-virtual {v2, v3, v5}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    .line 67
    .local v0, "appId":I
    const-string v2, ""

    const v3, 0x7f040003

    const/4 v4, 0x0

    invoke-static {p0, v2, v3, v5, v4}, Lcom/zuiapps/suite/utils/hud/ProgressHUD;->show(Landroid/content/Context;Ljava/lang/CharSequence;IZLandroid/content/DialogInterface$OnCancelListener;)Lcom/zuiapps/suite/utils/hud/ProgressHUD;

    move-result-object v2

    iput-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;->mProgressHUD:Lcom/zuiapps/suite/utils/hud/ProgressHUD;

    .line 68
    const-string v2, "push"

    new-instance v3, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity$1;

    invoke-direct {v3, p0}, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity$1;-><init>(Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;)V

    invoke-interface {v1, v0, v2, v3}, Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;->queryDetail(ILjava/lang/String;Lretrofit/Callback;)V

    .line 101
    return-void
.end method


# virtual methods
.method public finish()V
    .registers 2

    .prologue
    const/4 v0, 0x0

    .line 152
    invoke-super {p0}, Lcom/brixd/niceapp/activity/AbsBaseActivity;->finish()V

    .line 153
    invoke-virtual {p0, v0, v0}, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;->overridePendingTransition(II)V

    .line 154
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .registers 7
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 33
    invoke-super {p0, p1}, Lcom/brixd/niceapp/activity/AbsBaseActivity;->onCreate(Landroid/os/Bundle;)V

    .line 34
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    const-string v3, "ActionType"

    const/4 v4, -0x1

    invoke-virtual {v2, v3, v4}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    .line 35
    .local v0, "actionType":I
    packed-switch v0, :pswitch_data_6e

    .line 55
    :pswitch_11
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;->finish()V

    .line 59
    :goto_14
    return-void

    .line 37
    :pswitch_15
    new-instance v1, Ljava/util/HashMap;

    invoke-direct {v1}, Ljava/util/HashMap;-><init>()V

    .line 38
    .local v1, "map":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>;"
    const-string v2, "title"

    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;->getIntent()Landroid/content/Intent;

    move-result-object v3

    const-string v4, "Title"

    invoke-virtual {v3, v4}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 39
    const-string v2, "Content"

    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;->getIntent()Landroid/content/Intent;

    move-result-object v3

    const-string v4, "Content"

    invoke-virtual {v3, v4}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 40
    const-string v2, "ClickNotification"

    invoke-static {p0, v2, v1}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;Ljava/util/Map;)V

    .line 42
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;->prepareToShowDetail()V

    goto :goto_14

    .line 46
    .end local v1    # "map":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>;"
    :pswitch_41
    new-instance v1, Ljava/util/HashMap;

    invoke-direct {v1}, Ljava/util/HashMap;-><init>()V

    .line 47
    .restart local v1    # "map":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>;"
    const-string v2, "title"

    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;->getIntent()Landroid/content/Intent;

    move-result-object v3

    const-string v4, "Title"

    invoke-virtual {v3, v4}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 48
    const-string v2, "Content"

    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;->getIntent()Landroid/content/Intent;

    move-result-object v3

    const-string v4, "Content"

    invoke-virtual {v3, v4}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 49
    const-string v2, "ClickNotification"

    invoke-static {p0, v2, v1}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;Ljava/util/Map;)V

    .line 51
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;->prepareToShowCommunityDetail()V

    goto :goto_14

    .line 35
    nop

    :pswitch_data_6e
    .packed-switch 0x1
        :pswitch_15
        :pswitch_11
        :pswitch_11
        :pswitch_41
    .end packed-switch
.end method
